package com.dj.mingkong.common.constant;

/**
 * redis常量
 *
 * @author zenglonghui
 * @date: 2022/5/26 13:52
 */
public final class RedisConstants {
    private RedisConstants() {
    }

    /**
     * 用户登录
     */
    public static final String LOGIN = "login:";

    public static final String TOKEN = "token:";
    public static final long EXPIRE_TIME = 80;

    /**
     * 验证码
     */
    public static final String VERIFY_CODE = "verifyCode:";
    public static final long VERIFY_CODE_EXPIRE_TIME = 2;

    /**
     * 音乐播放人气统计
     */
    public static final String POPULARITY_MUSIC = "popularity:music:";

    /**
     * 音乐人人气统计
     */
    public static final String POPULARITY_MUSICIAN = "popularity:musician:";

    /**
     * 专辑人气统计
     */
    public static final String POPULARITY_ALBUM = "popularity:album:";

    /**
     * 音乐盒人气统计
     */
    public static final String POPULARITY_BOX = "popularity:box:";

    /**
     * 用户人气统计
     */
    public static final String POPULARITY_USER = "popularity:user:";

    /**
     * 用户访客记录
     */
    public static final String VISIT_USER = "visit:user:";

    /**
     * 专辑访客记录
     */
    public static final String VISIT_ALBUM = "visit:album:";

    /**
     * 音乐盒访客记录
     */
    public static final String VISIT_BOX = "visit:box:";

    /**
     * 音乐人访客记录
     */
    public static final String VISIT_MUSICIAN = "visit:musician:";

    /**
     * 音乐访客记录
     */
    public static final String VISIT_MUSIC = "visit:music:";

    /**
     * 请求频率限制
     */
    public static final String REQUEST_LIMIT = "request:limit:";

    /**
     * KEY分割符号
     */
    public static final String KEY_SPLIT = ":";

    /**
     * 登录
     */
    public static final String LOGIN_LIMIT = "login:limit:";

    /**
     * 专辑点赞
     */
    public static final String ALBUM_LIKE = "album:like:";

    /**
     * 音乐盒点赞
     */
    public static final String BOX_LIKE = "box:like:";

    /**
     * 所有音乐类型数据缓存
     */
    public static final String MUSIC_TYPE_ALL = "music:type:all";

    /**
     * 所有音乐风格数据缓存
     */
    public static final String MUSIC_STYLE_ALL = "music:style:all";

    /**
     * 字典表数据缓存
     */
    public static final String DICT_ALL = "dict:all:";
}
